import { observable, action, makeObservable } from "mobx";

class State {

    constructor() {
        makeObservable(this);
    }

    @observable num = 1;

    @action
    add = () => {
        this.num++;
    }
}

export default new State();